﻿using System.Collections.Generic;
using WS.EKA.Utilities.Extensions;

namespace WS.EKA.Utilities.Core
{
    public class IgnoreCaseEqualityComparer : IEqualityComparer<string>
    {
        public bool Equals(string x, string y)
        {
            return x.EqualsOrdinalIgnoreCase(y);
        }

        public int GetHashCode(string obj)
        {
            return obj.GetHashCode();
        }
    }
}
